/**
 *author:yhb
 */
package com.towker.frame.dao.sys;

import java.util.Map;
import org.springframework.stereotype.Repository;

import com.towker.core.db.*;
import com.towker.core.page.PageModel;
import com.towker.core.page.PageRequest;
import com.towker.frame.model.sys.Users;

@Repository
public class SysUserDao extends BaseDao<Users, Long>
{
	/**
	 * 获得实体的Class对象。
	 */
	@SuppressWarnings("unchecked")
	@Override
	public Class getEntityClass(){return Users.class;}

	
	
	/**
	 * 获得用户分页。
	 */
	@SuppressWarnings("unchecked")
	public PageModel getUserPage(PageRequest pageRequest)
	{
		return getPage(pageRequest);
	}

	
	
	@SuppressWarnings("unchecked")
	public void updSql(Map map)
	{
		this.getSqlSessionTemplate().update(getIbatisMapperNamespace() + ".updexcel", map);
	}
}
